﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8._11
{
    class NhanVien
    {
        public string Ten;
        public string DiaChi;
        public int NgaySinh;

        public virtual void Nhap()
        {
           Console.WriteLine("Nhap Ten Nhan Vien: ");
           Ten = Console.ReadLine();
           Console.WriteLine("Nhap Dia Chi:");
           DiaChi = Console.ReadLine();
           Console.WriteLine("Nhap Ngay Sinh: ");
           NgaySinh = int.Parse(Console.ReadLine());
        }
        public virtual void Xuat()
        {
            Console.WriteLine("Nhan Vien: " +Ten);
            Console.WriteLine("Ngay Sinh: "+ NgaySinh);
            Console.WriteLine("Dia Chi: " +DiaChi);
        }
    }
    class NVSX : NhanVien
    {
        private float SoSanPham;
        long Luong;
        public override void Nhap()
        
       {
           base.Nhap();
           Console.Write("Nhap So San Pham: ");
           SoSanPham = int.Parse(Console.ReadLine());
       }
        int TinhLuong()
        {
            Luong = SoSanPham * 20000;
        }
        public override void Xuat()
        {
            base.Xuat();
            Console.WriteLine("So San Pham" +SoSanPham);
            Console.WriteLine("Luong NVSX: " +SoSanPham*20000);
        }
    }
    class NVCN : NhanVien
    {
        private float NgayCong;
        public override void Nhap()
        {
            base.Nhap();
            Console.Write("Nhap ngay cong " +NgayCong);
            NgayCong = int.Parse(Console.ReadLine());
        }
    }
    class NCQL : NhanVien
    {
        int HeSoLuong;
        int LuongCoBan;
        public override void Nhap()
        {
            base.Nhap();
            Console.Write("Nhap He So Luong:");
            HeSoLuong = int.Parse(Console.ReadLine());
            Console.Write("Nhap Luong Co Ban: ");
            LuongCoBan = int.Parse(Console.ReadLine());
                
        }
    }

    class Program
    {
        static void Main(string[] args)
        {

        }
    }
}
